package com.starview.star.compiler.type;

import com.starview.platform.data.type.Location;
import com.starview.star.compiler.canonical.Variable;
import com.starview.star.compiler.util.AccessMode;
import com.starview.star.operators.ICafeBuiltin;

@SuppressWarnings("serial")
public class BuiltinInfo extends VarInfo
{
  private final ICafeBuiltin escape;

  public BuiltinInfo(ICafeBuiltin escape)
  {
    super(new Variable(Location.nullLoc, escape.getType(), escape.getName()), AccessMode.readOnly, true);
    this.escape = escape;
  }

  public ICafeBuiltin getEscape()
  {
    return escape;
  }
}
